fix(antigravity): bump client version to 1.25.0 for gemini-3.1 model access#2343
fix(antigravity): bump client version to 1.25.0 for gemini-3.1 model access#2343manaporkun wants to merge 1 commit intosipeed:mainfrom
Conversation
…access Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the Antigravity (Google Cloud Code Assist) provider’s client version so requests identify as a newer antigravity/<version> client, which is required for access to newer Gemini 3.1 models.
Changes:
- Bump
antigravityVersionfrom1.15.8to1.25.0to satisfy the API’s minimum client version gating.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| antigravityDefaultModel = "gemini-3-flash" | ||
| antigravityUserAgent = "antigravity" | ||
| antigravityXGoogClient = "google-cloud-sdk vscode_cloudshelleditor/0.1" | ||
| antigravityVersion = "1.15.8" | ||
| antigravityVersion = "1.25.0" | ||
| ) |
There was a problem hiding this comment.
antigravityVersion is only used for the Chat request’s User-Agent header, but other Antigravity API calls in this file (e.g., FetchAntigravityProjectID and FetchAntigravityModels) still send User-Agent: antigravity without a version. Given the API gates features/models based on the antigravity/<version> User-Agent, these endpoints may remain blocked or behave inconsistently. Consider centralizing a single versioned User-Agent value and using it for all Antigravity HTTP requests in this provider.
Summary
antigravityVersionfrom1.15.8to1.25.0in the Antigravity providergemini-3.1-pro-low,gemini-3.1-flash-lite, etc.) — the model itself responds with "Gemini 3.1 Pro is not available on this version. Please upgrade to the latest version."User-Agentheader (antigravity/<version>) and gates model access behind minimum client versionsRoot cause
pkg/providers/antigravity_provider.go:24— the version string1.15.8is too old for gemini-3.1 models. Bumping to1.25.0(matching current Antigravity IDE releases) resolves the issue.Test plan
gemini-3.1-pro-lowreturns "not available" with version1.15.8gemini-3.1-pro-lowworks correctly with version1.25.0(tested via direct API call and patched binary)gemini-3-flashand other existing models continue to work🤖 Generated with Claude Code